#pragma once
delegate void RenderHandler();
ref class Graphics sealed : public DirectXBase
{
public:
	Graphics(void);
	virtual ~Graphics(void);
public:
	event RenderHandler^ RenderTarget;
public:
	void Initialize();
	void Clear(UINT32 color);
	void StartDraw();
	void EndDraw();
public:
	Windows::Storage::Streams::IRandomAccessStream^ GetBitmapImage();
	void Render();
public:
	//Draw Text
	void DrawText(Platform::String^ text,double x,double y,double width,double height);
	//Draw Rectangle
	void DrawRectangle(double x,double y,double width,double height,ULONG32 fillColor,ULONG32 borderColor,double thickness);
};

